from random import choice


#foo = ['zhangsan,lisi','zhouwu,zhaosi','sunwukong,zhubajie','rulai,guanyin']
foo = ['A','B','C','D','E','F']
fo_tmp=foo[:]
fool = []
#print (choice(foo))
#print (choice(foo))
#for x in foo :
#    print(x)
#for i in range(len(fo_tmp)) :
for x in fo_tmp :
    if len(foo):
          fool.append(x)
          print("fool列表新值为：")
          print(fool)
          foo.remove(x)
  #  foo.pop(foo.index(x))


          print("随机值："+choice(foo))

          print(fool)
    else:
        print("list is null")
#    print(foo)


filename ='e:\\test.txt'
f=open(filename,"r")
lines=f.readlines()
for line in lines:
    print (line)
f.close()

'''
import turtle as t
import time
t.color("red", "yellow")
t.speed(10)
t.begin_fill()
for _ in range(50):
  t.forward(200)
  t.left(170)

time.sleep(1)

import turtle
import time

turtle.pensize(5)
turtle.pencolor("yellow")
turtle.fillcolor("red")

turtle.begin_fill()

for _ in range(5):
    turtle.forward(200)
    turtle.right(144)
turtle.end_fill()
time.sleep(2)

turtle.penup()
turtle.goto(-150, -120)
turtle.color("violet")
turtle.write("Done", font=('Arial', 40, 'normal'))
time.sleep(1)

'''

